#import "YearningElusiveCell.h"


@implementation YearningElusiveCell

- (instancetype)initWithStyle:(UITableViewCellStyle)style reuseIdentifier:(NSString *)reuseIdentifier {
	self = [super initWithStyle:style reuseIdentifier:reuseIdentifier];
	if (self) {

		self.selectionStyle = UITableViewCellSelectionStyleNone;
		//self.contentView.backgroundColor = UIColor.whiteColor;

		//: 初始化UI布局
		[self joyfulConfigViews];
	}
	return self;
}

- (void)setFlourish:(YearningElusiveModel *)flourish {
	_flourish = flourish;

	//: 配置cell的UI

	self.magnitudeLushLabel.text = flourish.yonder;

	[self.perceptiveImageView sd_setImageWithURL:[NSURL URLWithString:flourish.yonder] placeholderImage:nil];



}
- (UIView *)inspireView {
	if (!_inspireView) {
	
        _inspireView = [[UIView alloc] initWithFrame:CGRectZero];
	}
	return _inspireView;
}

- (void)joyfulConfigViews {

    //: 描述_0
    self.magnitudeLushLabel = [[UILabel alloc] initWithFrame:CGRectZero];
    self.magnitudeLushLabel.text = @"label_0";
    self.magnitudeLushLabel.font = [UIFont systemFontOfSize:15 weight:UIFontWeightRegular];
    self.magnitudeLushLabel.textColor = [UIColor colorWithRed:88/255.0 green:186/255.0 blue:67/255.0 alpha:1.0];
    self.magnitudeLushLabel.textAlignment = NSTextAlignmentRight;
    self.magnitudeLushLabel.numberOfLines = 0;
    [self.contentView addSubview:self.magnitudeLushLabel];
	[self.magnitudeLushLabel mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(172);
		make.height.mas_equalTo(145);
		make.bottom.equalTo(@(18));
	}];


    //: 描述_1
    UITextView *journey = [[UITextView alloc] init];
    journey.frame = CGRectMake(29, 50, 138, 189);
    self.diligentPrismHarmonyTextView = journey;
    [self.contentView addSubview:journey];


    //: 描述_2
    self.artistryTextView = [[UITextView alloc] init];
    [self.contentView addSubview:self.artistryTextView];
	[self.artistryTextView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(183);
		make.height.mas_equalTo(120);
		make.top.equalTo(@(18));
		make.bottom.equalTo(@(30));
	}];


    //: 描述_3
    UIImageView *eclipse = [[UIImageView alloc] init];
    eclipse.contentMode = UIViewContentModeScaleAspectFill;
    eclipse.clipsToBounds = YES;
    eclipse.layer.cornerRadius = 0;
    eclipse.layer.masksToBounds = YES;
    UIImage *radianceJoyful = [UIImage imageNamed:@"images/image_3.png"];
    if (radianceJoyful) {
	    eclipse.image = radianceJoyful;
    }
    self.perceptiveImageView = eclipse;
    [self.contentView addSubview:eclipse];
	[self.perceptiveImageView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(113);
		make.height.mas_equalTo(196);
		make.bottom.equalTo(@(20));
	}];


    //: 描述_4
    self.unfoldApexForestImageView = [[UIImageView alloc] init];
    self.unfoldApexForestImageView.contentMode = UIViewContentModeScaleAspectFill;
    self.unfoldApexForestImageView.clipsToBounds = YES;
    self.unfoldApexForestImageView.layer.cornerRadius = 8;
    self.unfoldApexForestImageView.layer.masksToBounds = YES;
    self.unfoldApexForestImageView.frame = CGRectMake(35, 49, 92, 76);
    UIImage *zenithPlume = [UIImage imageNamed:@"images/image_4.png"];
    if (zenithPlume) {
	    self.unfoldApexForestImageView.image = zenithPlume;
    }
    [self.contentView addSubview:self.unfoldApexForestImageView];

	//: 描述_5
	[self.contentView addSubview:self.inspireView];
	[self.inspireView mas_makeConstraints:^(MASConstraintMaker *make) {
		make.width.mas_equalTo(195);
		make.height.mas_equalTo(143);
		make.top.equalTo(@(15));
	}];
}


@end